package com.d0306;

import javax.swing.*;
import java.util.Scanner;

public class Number1 {
    public static void main(String[] args) {
        System.out.println("请输入一个整数：");
        Scanner input = new Scanner(System.in);
        int i = input.nextInt();
        String a = "" + i ;
        int L= a.length();
        System.out.println(i+"是" +L + "位数");

        System.out.print("倒序 输出为：");
        for(int j=0;j<L;j++){
            int x = i%10;
            System.out.print(x);
            i/=10;
        }
    }
}
